package net.mysoft.budgetsoft.system.pagemodel;

import java.util.Date;
import java.util.Locale;

import net.mysoft.framework.i18n.Locales;

/**   
 *  
 * @author dagongPGP v1.0 
 * @link <a href=http://www.dagongsoft.net>北京大公信软科技有限公司</a> 
 *  
 * @version $Revision: 1.00  $Date: 2013-07-08 17:26:47 
 */

public class FlowTemplate implements java.io.Serializable {

	private String ids;
	private int page;// 当前页
	private int rows;// 每页显示记录数
	private String sort;// 排序字段名
	private String order;// 按什么排序(asc,desc)
	  
    private String ftl_ID;
    private String ftl_Name_cn;
    private String ftl_Name_en;
    private String ftl_Description;
    private Integer ftl_Valid;
    private String ftc_ID;
    private String ftl_CreateUserID;
    private Date ftl_CreateTime;
    private String ftl_UpdateUserID;
    private Date ftl_UpdateTime;
    
    private String ftlName;
    
	public String getFtc_ID() {
		return ftc_ID;
	}
	public void setFtc_ID(String ftc_ID) {
		this.ftc_ID = ftc_ID;
	}
	public String getFtl_CreateUserID() {
		return ftl_CreateUserID;
	}
	public void setFtl_CreateUserID(String ftl_CreateUserID) {
		this.ftl_CreateUserID = ftl_CreateUserID;
	}
	public Date getFtl_CreateTime() {
		return ftl_CreateTime;
	}
	public void setFtl_CreateTime(Date ftl_CreateTime) {
		this.ftl_CreateTime = ftl_CreateTime;
	}
	public String getFtl_UpdateUserID() {
		return ftl_UpdateUserID;
	}
	public void setFtl_UpdateUserID(String ftl_UpdateUserID) {
		this.ftl_UpdateUserID = ftl_UpdateUserID;
	}
	public Date getFtl_UpdateTime() {
		return ftl_UpdateTime;
	}
	public void setFtl_UpdateTime(Date ftl_UpdateTime) {
		this.ftl_UpdateTime = ftl_UpdateTime;
	}
	public String getFtl_Name(){
		Locale locale = Locales.getLocale();
    	return Locale.CHINA.equals(locale)?this.getFtl_Name_cn():this.getFtl_Name_en();
	}
	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}
	
	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}
	
    public String getFtl_ID(){
    	return this.ftl_ID;
    }
    
    public void setFtl_ID(String ftl_ID){
    	this.ftl_ID = ftl_ID;
    }
    
    public String getFtl_Name_cn(){
    	return this.ftl_Name_cn;
    }
    
    public void setFtl_Name_cn(String ftl_Name_cn){
    	this.ftl_Name_cn = ftl_Name_cn;
    }
    
    public String getFtl_Name_en(){
    	return this.ftl_Name_en;
    }
    
    public void setFtl_Name_en(String ftl_Name_en){
    	this.ftl_Name_en = ftl_Name_en;
    }
    
    public String getFtl_Description(){
    	return this.ftl_Description;
    }
    
    public void setFtl_Description(String ftl_Description){
    	this.ftl_Description = ftl_Description;
    }
    
    public Integer getFtl_Valid(){
    	return this.ftl_Valid;
    }
    
    public void setFtl_Valid(Integer ftl_Valid){
    	this.ftl_Valid = ftl_Valid;
    }
    public String getFtlName() {
		return ftlName;
	}
    public void setFtlName(String ftlName) {
		this.ftlName = ftlName;
	}
    
	
    @Override
    public int hashCode() {
    	if(this.getFtl_ID()==null)return super.hashCode();
    	int prime = 0;
        prime +=this.getFtl_ID().hashCode();
        return prime;
    }

    @Override
    public boolean equals(Object obj) {
    	boolean isEquals = false;
    	if(obj!=null&&this.getClass()==obj.getClass()){
    		FlowTemplate clazz = (FlowTemplate)obj;
            if(clazz.getFtl_ID().equals(this.getFtl_ID()))
            	isEquals = true;
    		return isEquals;
    	}
        return isEquals;
    }

}